{tpl head}
<form method="Post" name="k_form" action="?c={$classname}&a={$form_action}">
    <table id="senfe" class="new_table" width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
        <thead><tr class="n_bt"><td colspan="2" align="center">工作小助手管理系统</td></tr>
        <tr><th height="28" colspan="2" class="thbt">【{$title}】</th></tr>
        </thead>
        <tbody id="bstable">
        <tr>
            <td width="13%" height="30" align="right">会员名称：</td>
            <td width="87%">
                <input name="username" type="text" class="input400" value="{$oj->username}" disabled/></td>
        </tr>
        <tr>
            <td width="13%" height="30" align="right">Email：</td>
            <td width="87%">
                <input name="email" type="text" class="input400" value="{$oj->email}" disabled/></td>
        </tr>
        <tr>
            <td width="13%" height="30" align="right">余额：</td>
            <td width="87%">
                <input name="email" type="text" class="input400" value="{$oj->balance}" disabled/></td>
        </tr>
        <tr>
            <td width="13%" height="30" align="right">密码：</td>
            <td width="87%">
                <input name="pass" type="text" class="input400" value=""/></td>
        </tr>
        <tr>
            <td width="13%" height="30" align="right">重复密码：</td>
            <td width="87%">
                <input name="repeat" type="text" class="input400" value=""/></td>
        </tr>
        <tr>
            <td width="13%" height="30" align="right">昵称：</td>
            <td width="87%">
                <input name="nickname" type="text" class="input400" value="{$oj->nickname}"/></td>
        </tr>
        <tr>
            <td width="13%" height="30" align="right">会员组：</td>
            <td width="87%">
                <select name="groupid" class="input400 selecth" id="fid" onfocus="kcancel('fid')">
                    <option value="0" selected="selected" class="red">请选择分组</option>
                    {loop $goup_list $v}
                    <option value="{$v.id}" {if $oj.groupid==$v.id}selected="selected" {/if}>{$v.group_name}</option>
                    {/loop}

                </select></td>
        </tr>
        <tr>
            <td width="13%" height="30" align="right">位置：</td>
            <td width="87%">
                <select name="s1" class="input400 selecth" id="st1">
                <option value="0" selected="selected" class="red">请选择小区</option>
                {loop $slist $v}
                <option value="{$v.id}" {if $oj.s1==$v.id}selected="selected" {/if}> {$v.name}</option>
                {/loop}

                </select>
                <select name="s2" class="input400 selecth" id="st2">
                <option value="0" selected="selected" class="red">请选择</option>
                    {loop $slist2 $v}
                    <option value="{$v.id}" {if $oj.s2==$v.id}selected="selected" {/if}> {$v.name}</option>
                    {/loop}
                </select></td>
        </tr>
        <tr>
            <td width="13%" height="30" align="right">详细地址：</td>
            <td width="87%">
                <input name="address" type="text" class="input400" value="{$oj->address}"/></td>
        </tr>
        <tr>
            <td width="13%" height="30" align="right">家庭人数：</td>
            <td width="87%">
                <input name="family" type="text" class="input400" value="{$oj->family}"/></td>
        </tr>


        <tr>
            <td height="35" colspan="2" align="center" >
                <input name="c" type="hidden" value="{$classname}" />
                <input name="a" type="hidden" value="{$form_action}" />
                <input name="id" type="hidden" value="{$id}" />
                <input name="add" id="submit" class="button" type="submit" value="确认" />
                &nbsp;<input name="" type="reset" class="button" value="重置" />
            </td>
        </tr>
        </tbody>
    </table>
</form>
<script type="text/javascript">
    $(function(){
        $("#st1").on('change',function(){
            change($(this).val());
        });
        function change(id){
            $.getJSON('index.php?a=get_street&id='+id, function(data){
                var html='';
                if( (data)==null){
                    $("#st2").html(html);
                    return false;
                }
                $.each(data, function(index, item){
                    html+='<option value="'+item.id+'">'+item.name+'</option>';
                })
                $("#st2").html(html);
            })
        }
    });
</script>
</body>
</html>